package demo3;

public class Dog extends Animal{
    private int a ;
    public  int b;
    public Dog(String name, int age) {
        super(name, age);
    }
    public void base(){
        System.out.println(this.name+" 正在吃狗粮");
    }
    public static void main(String[] args) {
        Animal animal = new Dog("小黄",10);
        animal.base();
        Animal animal1 = new Cat("小红",1);
        animal1.base();


    }
}
